home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 352_01 / lcabove.cpp < prev    next >
C/C++ Source or Header  |  1991-04-22  |  415b  |  21 lines

  1. // LCABOVE.CPP - contains LinkClass::InsertAbove()
  2. //        routine for inserting a node above the 'this' node for linked lists.
  3. //    
  4. #include <stdlib.h>
  5. #include <alloc.h>
  6. #include <iostream.h>
  7. #include "wtwg.h"
  8.  
  9. #include "dblib.h"
  10.     
  11.     
  12. void LinkClass::insertAbove ( LinkClass &existing )
  13.     {
  14.     nx = existing.nx;
  15.     pv = &existing;
  16.     pv->nx = this;
  17.     nx->pv = this; 
  18.     };    // end LinkClass::insertAbove()
  19.     
  20.     
  21.